package psn.kiko.mapper.business.system;

import org.apache.ibatis.annotations.Mapper;
import psn.kiko.annotation.sql.CommonFiledAutoSet;
import psn.kiko.annotation.sql.NeedCommonFiledAutoSet;
import psn.kiko.enumeration.DataBaseOperationType;
import psn.kiko.pojo.entity.system.BlogEntity;
import psn.kiko.pojo.vo.BlogVO;

import java.util.List;

/**
 * 博客DAO
 */
@Mapper
public interface BlogMapper{
	@CommonFiledAutoSet(DataBaseOperationType.INSERT)
	Integer insert(@NeedCommonFiledAutoSet BlogEntity blogEntity);
	
	List<String> selectImageIdsById(List<Integer> ids);
	
	Integer deleteBatchById(List<Integer> ids);
	
	BlogVO selectById(Integer id);
	
	List<BlogVO> selectList();
	
	@CommonFiledAutoSet(DataBaseOperationType.UPDATE)
	Integer updateById(@NeedCommonFiledAutoSet BlogEntity blogEntity);
}
